/*
 * PinMap.h
 *
 * Created: 24/03/2014 04:01:38
 *  Author: Jason
 */ 


#ifndef PINMAP_H_
#define PINMAP_H_

// all pin defines go here
#define floorADC1 1 //    PF1 //ADC1
#define floorADC2 4 //    PB4 //ADC11 
#define floorADC3 7 //    PD7 //ADC10
#define floorADC4 6 //    PD6 //ADC9
#define floorADC5 4 //    PF4 //ADC4

//floor emitters
#define floorLEDsInner 7 //  PB7
#define floorLEDsOuter 6 //  PC6

#define sideADC1  6 //    PB6 //ADC13
#define sideADC2  7 //    PF7 //ADC7
#define sideADC3  6 //    PF6 //ADC6
#define sideADC4  1 //    PF1 //ADC1 //shared with FloorADC1
#define sideADC5  4 //    PF4 //ADC4 //shared with FloorADC5 
#define sideADC6  5 //    PF5 //ADC5

//wall emitters
#define sideHighPower 6   // PE6 // High power front LED
#define side0         6   // PC6 // std front LED
#define side45        2   // PE2 // diagonal LED
#define side90        7   // PC7 // side facing LED

//LEDs and buttons are on the same pins
#define OLEDReset 2 // PD2
#define HCI1      3 // PD3
#define HCI2      5 // PD5
#define LED1 HCI1
#define LED2 HCI2
#define BUTTON1 HCI1
#define BUTTON2 HCI2


#define I2C_Clk    0 //    PD0
#define I2C_Data   1 //    PD1

#define pinSPI_Clk    1 //    PB1
#define pinSPI_MISO   3 //    PB3
#define pinSPI_MOSI   2 //    PB2
#define pinSPI_SS     0 //    PB0

//ATmega328 pins
//#define pinMISO 4 //PB4
//#define pinMOSI 3 //PB3
//#define pinSCK 5  //PB5
//#define pinSS 2   //PB2


#endif /* PINMAP_H_ */